<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>支付申请记录</title>
	<link href="/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="place">
    	<span>位置：</span>
	    <ul class="placeul"><li><a href="/index.html">首页</a></li><li>支付申请记录</li></ul>
    </div>
    
    <div class="rightinfo">
	    <div class="tools">
	        <ul class="toolbar1">
	        	<form action="/pay/apply/applys.html" method="post">
		        	<span>
		        		<input name="curName" class="scinput" type="text" value="${(apply.curName)!""}" autocomplete="off" placeholder="客户名称">
		        		<input name="orderCode" class="scinput" type="text" value="${(apply.orderCode)!""}" autocomplete="off" placeholder="订单号">
		        		<select class="select3" name="status" style="width: 100px;">
						    <option value="">选择支付方式</option>
						    <#if payMethods??><#list payMethods as item>
						    <option value=${item.id} <#if (apply.payMethodId)?? && (apply.payMethodId)?number ==item.id>selected="selected"</#if>>${(item.name)!""}</option>
					        </#list></#if>
					    </select>
		        		<select class="select3" name="status" style="width: 100px;">
						    <option value="">选择状态</option>
						    <#if payStatus??><#list payStatus as item>
						    <option value=${item.val} <#if (apply.status)?? && (apply.status)?number ==apply.val>selected="selected"</#if>>${(item.text)!""}</option>
					        </#list></#if>
					    </select>
				    	<input type="submit" class="scbtn" value="查询"/>
		        	</span>
	    		</form>
	        </ul>
	    </div>
        
    	<table class="tablelist">
	    	<thead>
		    	<tr>
			        <th width="5%">id</th>
			        <th width="10%">订单号</th>
			        <th width="10%">订单金额</th>
			        <th width="10%">付款金额</th>
			        <th width="5%">状态</th>
			        <th width="10%">客户名称</th>
			        <th width="10%">备注说明</th>
			        <th width="10%">支付方式</th>
			        <th width="10%">申请时间</th>
			        <th width="10%">接收时间</th>
			        <th width="10%">操作</th>
		        </tr>
	        </thead>
	        <tbody>
	        <#if applys??>
			  		<#list applys as item>
						<tr>
					        <td>${(item.id)!"--"}</td>
					        <td>${(item.orderCode)!"--"}</td>
					        <td>${((item.amount)!0)?string('0.00')}</td>
					        <td>${((item.amountActual)!0)?string('0.00')}</td>
					        <td>${(item.status)!"--"}</td>
					        <td>${(item.curName)!"--"}</td>
					        <td>${(item.desciption)!"--"}</td>
					        <td><img src="${(item.payMethodIcon)!""}" title="${(item.payMethodName)!"--"}"/></td>
					        <td><#if item.requestTime?exists>${(item.requestTime)?string("yyyy-MM-dd HH:mm:ss")}<#else>--</#if></td>
					        <td><#if item.receiveTime?exists>${(item.receiveTime)?string("yyyy-MM-dd HH:mm:ss")}<#else>--</#if></td>
					        <td>
					        	<a href="/pay/apply/view/${item.id}.html">查看</a>&ensp;|&ensp;
					        	<a href="/pay/apply/edit/${item.id}.html">编辑</a>&ensp;|&ensp;
					        </td>
				        </tr> 
			  		</#list>
			  	</#if>
	        </tbody>
	    </table>
   		<#import "/common/pager.ftl" as page>
		<#if count??>
			<@page.pager start=start size=size count=count url="/pay/apply/applys.html?t=admin" gotoPage=true />
		</#if>
	</body>
	<script type="text/javascript" src="/js/jquery-1.10.1.min.js"></script>
	<script type="text/javascript" src="/js/commonList.js"></script>
	<script type="text/javascript">
		/** 删除的URL地址前缀，在commonList.js里面调用的删除方法会用到 */
		var delUrl = "/pay/apply";
	</script>
</html>